#include <stdio.h> 

int main(void){
	int tem;
	freopen("freopen.txt","r",stdin);
	freopen("freopen.txt","w",stdout);
	for (int i=0;i<8;i++){
		scanf("%d",&tem);
		printf("%4d",tem);
	}
	return 0;
}
